<?php
/*	$str = "这个时Mervin‘S的博客，mervin0502@163.com mervin.me";
	for($i = 0; $i < iconv_strlen($str, 'UTF-8'); $i++){
		$s = iconv_substr($str, $i, 1, 'UTF-8');
		echo ord($s)."####";
		echo $s.'<br/>';
	
	
	}	
	echo '<pre>';
	//var_dump($arr);
	echo '</pre>';
	
echo $str= '你好,这里是卖咖啡!'; 
echo '<br />'; 
echo iconv('GB2312', 'UTF-8', $str); //将字符串的编码从GB2312转到UTF-8 
echo '<br />'; 
echo iconv_substr($str, 1, 1, 'UTF-8'); //按字符个数截取而非字节 
print_r(iconv_get_encoding()); //得到当前页面编码信息 
echo iconv_strlen($str, 'UTF-8'); //得到设定编码的字符串长度 
//也有这样用的 
$content = iconv("UTF-8","gbk//TRANSLIT",$content); */

//echo time();
class A{
	var $data = array('name1'=>'nana', 'num'=>122, 'email'=>'motian8@163.com');
	public function __construct(){
		
	}
	public function f(){
		$d = $this->data;
		return $d['num'];
	}
}
$a = new A();
echo $a.f();
/*	$data = array('name1'=>'nana', 'num'=>122, 'email'=>'motian8@163.com');
	echo $s = serialize($data);
	var_dump(unserialize($s));*/
?>